<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
















  
  
  <link href="/blogs/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />







<link href="/blogs/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blogs/css/main.css?v=5.1.3" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/blogs/images/apple-touch-icon.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="32x32" href="/blogs/images/favicon-32x32.png?v=5.1.3">


  <link rel="icon" type="image/png" sizes="16x16" href="/blogs/images/favicon-16x16.png?v=5.1.3">


  <link rel="mask-icon" href="/blogs/images/logo.svg?v=5.1.3" color="#222">





  <meta name="keywords" content="Nginx," />










<meta name="description" content="nginx配置ssl之踩坑系列最近想弄个nginx来玩玩，代理我的几个服务 1.安装nginx服务器的下载安装等等，网上一堆教程，也比较简单，这里不多做赘述 2.为什么要用Nginx?nginx是一款可以正向代理和反向代理的服务器，甚至能支持50000+的并发。 用nginx来做反向代理，动静结合，负载均衡都很方便。 这些也有相当多的博客描述，这里不赘述。">
<meta property="og:type" content="article">
<meta property="og:title" content="nginx配置ssl之踩坑系列">
<meta property="og:url" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/index.html">
<meta property="og:site_name" content="Chao&#39;s blog">
<meta property="og:description" content="nginx配置ssl之踩坑系列最近想弄个nginx来玩玩，代理我的几个服务 1.安装nginx服务器的下载安装等等，网上一堆教程，也比较简单，这里不多做赘述 2.为什么要用Nginx?nginx是一款可以正向代理和反向代理的服务器，甚至能支持50000+的并发。 用nginx来做反向代理，动静结合，负载均衡都很方便。 这些也有相当多的博客描述，这里不赘述。">
<meta property="og:locale">
<meta property="og:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic1.png">
<meta property="og:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic2.png">
<meta property="og:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic3.png">
<meta property="og:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic4.png">
<meta property="og:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic5.png">
<meta property="og:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic6.png">
<meta property="og:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic7.png">
<meta property="og:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic8.png">
<meta property="og:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic5.png">
<meta property="article:published_time" content="2022-05-02T13:46:30.000Z">
<meta property="article:modified_time" content="2022-05-02T15:21:53.015Z">
<meta property="article:author" content="Chaoyxy">
<meta property="article:tag" content="Nginx">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic1.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '',
    scheme: 'Gemini',
    version: '5.1.3',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":true,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://louchaoyy.gitee.io/blogs/2022/05/02/nginx配置ssl之踩坑系列/"/>





  <title>nginx配置ssl之踩坑系列 | Chao's blog</title>
  








<meta name="generator" content="Hexo 5.4.0"></head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blogs/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Chao's blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blogs/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/blogs/about" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/blogs/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-question-circle"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://louchaoyy.gitee.io/blogs/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blogs/images/cat.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Chao's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">nginx配置ssl之踩坑系列</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2022-05-02T21:46:30+08:00">
                2022-05-02
              </time>
            

            

            
          </span>

          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count disqus-comment-count"
                        data-disqus-identifier="2022/05/02/nginx配置ssl之踩坑系列/" itemprop="commentCount"></span>
                </a>
              </span>
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h1 id="nginx配置ssl之踩坑系列"><a href="#nginx配置ssl之踩坑系列" class="headerlink" title="nginx配置ssl之踩坑系列"></a>nginx配置ssl之踩坑系列</h1><p>最近想弄个nginx来玩玩，代理我的几个服务</p>
<h2 id="1-安装"><a href="#1-安装" class="headerlink" title="1.安装"></a>1.安装</h2><p>nginx服务器的下载安装等等，网上一堆教程，也比较简单，这里不多做赘述</p>
<h2 id="2-为什么要用Nginx"><a href="#2-为什么要用Nginx" class="headerlink" title="2.为什么要用Nginx?"></a>2.为什么要用Nginx?</h2><p>nginx是一款可以正向代理和反向代理的服务器，甚至能支持50000+的并发。</p>
<p>用nginx来做<strong>反向代理，动静结合，负载均衡</strong>都很方便。</p>
<p>这些也有相当多的博客描述，这里不赘述。</p>
<span id="more"></span>

<p>来几张反向代理以及负载均衡的图片。</p>
<p>我们来举个例子说一下代理，正向代理，反向代理，负载均衡的事。</p>
<p><strong>假如我们有一个卧底打入敌人内部，我们要联系我们的这个卧底五号情报员，以取得情报。</strong></p>
<p>首先是无代理的，这样我们客户端访问服务器的时候，就直接访问了目标主机，万一目标主机暴露，这样被攻击的时候，目标主机直接崩溃，损失惨重。<strong>这种情况就是说：没有代理，我们在联系内部卧底情报员的时候，我们直接和他联系，这样的风险就是，万一卧底暴露，被敌人攻击，那我们就彻底完了，再也没有情报来源了</strong></p>
<img src="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic1.png" class title="无代理直接访问目标主机">

<p>正向代理，这时我们找了一台代理服务器来转达我们要说的话。此时有了代理，那么我们不需要直接和目标主机交互，我们找了一个代理服务器来接受，转达我们的意思。</p>
<p><strong>这种情况就是：现在我们已经有了代理的人来转达意思，这个代理的点就是南磨房杂货铺的高进通过泰山派香烟传递内容，每次我需要向五号情报员联络，我都会找到我的代理服务器也就是高进，由他去转达我的意思，这样做的好处是：万一暴露了，那么也只是杂货铺的高进暴露了，我们的五号情报员依然很安全</strong>，在网络攻击中，攻击者只是攻击到我们的代理服务器，我们存数据的目标服务器很安全，损失不大，最多损失一台代理服务器而已，大不了重新找一个代理服务器，我们又可以正常通讯了。</p>
<img src="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic2.png" class title="代理访问目标主机">

<p>但是，假如我每天都有大量的信息需要向五号情报员传达，他一个人忙不过来怎么办？这就是负载均衡。</p>
<p><strong>这种情况就是，假如我们有五号情报员，六号情报员，七号情报员，但是他们能力不一样，五号情报员比较牛逼，一天能处理100条情报，六号情报员每天只能处理20份情报，七号情报员每天只能处理50份情报，而且分工不同。这时候反向代理服务器就能实现负载均衡，通过设置一个权重，高进会把更多的任务往五号那里送，较少的任务往六号七号那里送，我的消息到了高进哪里，她负责合理分配并转发，这样就实现了负载均衡</strong></p>
<p>同样在互联网中，第一台服务器性能比较好，256G内存，能处理更多任务，第二台128G也还可以，能力差一点，第三台较差，64G内存，而且三台服务器各干的事情不一样，第一台性能好，用于大量的数据计算和查找数据，第二台加载静态资源文件，第三台动态生成某些应用或者跑着某个服务。这样外面的客户端发过来的请求，nginx就负责做好分工和转发，厉害的服务器多干点活，如果客户端发过来的是查找数据就找第一台，加载某张图片就找第二台，运行某个应用就找第三台。这样就实现了负载均衡，动静结合。不至于让某一台服务器崩溃，导致旱的旱死，涝的涝死。</p>
<img src="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic3.png" class title="反向代理，动静结合，负载均衡">

<h2 id="3-配置"><a href="#3-配置" class="headerlink" title="3.配置"></a>3.配置</h2><p>配置过程不详细说了，网上有大把教程</p>
<h2 id="4-配置SSL"><a href="#4-配置SSL" class="headerlink" title="4.配置SSL"></a>4.配置SSL</h2><p>之前我一直用的是Apache阿帕奇服务器，也使用阿帕奇服务器配置过ssl，现在我需要使用nginx配置ssl进行开发。同样是去指定的节点，修改配置文件：</p>
<p>如下：</p>
<img src="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic4.png" class title="nginx配置文件">

<p><strong>坑1</strong></p>
<p>只能使用443端口</p>
<p><strong>坑2</strong>（重点）</p>
<p>proxy_pass这里不能使用 https</p>
<p>应该改成http</p>
<p>因为还没开始代理</p>
<p>只有代理了之后，才可以用https访问</p>
<h2 id="5-测试"><a href="#5-测试" class="headerlink" title="5.测试"></a>5.测试</h2><p>我把ssl端口设置为5566，<strong>记得要去云服务器控制台打开5566端口</strong></p>
<p>https正常访问我的8888服务</p>
<img src="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic5.png" class title="https正常访问我的8888服务">

<p>http正常访问我的8888服务</p>
<img src="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic6.png" class title="http正常访问我的8888服务">

<p><strong>此时，我又起了一个apache的服务器</strong></p>
<p><strong>我的apache服务器监听的我的80，443两个端口</strong></p>
<p>等于说，我的目标服务器配置了ssl证书，我们可以直接使用</p>
<p>我的nginx代理服务器也配置了ssl证书，同样可以处理一些需要https加密认证的服务。nice！！！！</p>
<p>下面是我的门户，使用<a target="_blank" rel="noopener" href="https://chaoyxy.cn默认访问443端口/">https://chaoyxy.cn默认访问443端口</a></p>
<img src="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic7.png" class title="https正常访问我的chaoyxy.cn可道云服务">

<img src="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic8.png" class title="连接是安全的">

<p>同样位于5566端口的服务也正常访问</p>
<img src="/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/pic5.png" class title="https正常访问我的8888服务">

<p><strong>打完收工！！！</strong></p>

      
    </div>
    
    
    

    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>打赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="http://chaoyxy.cn/data/User/admin/home/desktop/images/alipay.jpg" alt=" 微信支付"/>
        <p>微信支付</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="http://chaoyxy.cn/data/User/admin/home/desktop/images/wechatpay.jpg" alt=" 支付宝"/>
        <p>支付宝</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/blogs/tags/Nginx/" rel="tag"># Nginx</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/blogs/2022/05/01/Express%E4%BB%A3%E7%A0%81%E4%BC%98%E5%8C%96/" rel="next" title="Express代码优化">
                <i class="fa fa-chevron-left"></i> Express代码优化
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/blogs/2022/05/21/TypeScript%E7%BC%96%E8%AF%91%E6%89%93%E5%8C%85%E5%A4%84%E7%90%86/" rel="prev" title="TypeScript编译打包处理">
                TypeScript编译打包处理 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="disqus_thread">
        <noscript>
          Please enable JavaScript to view the
          <a target="_blank" rel="noopener" href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
        </noscript>
      </div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="/blogs/images/cat.jpg"
                alt="" />
            
              <p class="site-author-name" itemprop="name"></p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/blogs/archives">
              
                  <span class="site-state-item-count">43</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/blogs/tags/index.html">
                  <span class="site-state-item-count">10</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://gitee.com/louchaoyy" target="_blank" title="Gitee">
                      
                        <i class="fa fa-fw fa-gitee"></i>Gitee</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="louchao@louchaoyy.cn" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97"><span class="nav-number">1.</span> <span class="nav-text">nginx配置ssl之踩坑系列</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-%E5%AE%89%E8%A3%85"><span class="nav-number">1.1.</span> <span class="nav-text">1.安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E7%94%A8Nginx"><span class="nav-number">1.2.</span> <span class="nav-text">2.为什么要用Nginx?</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-%E9%85%8D%E7%BD%AE"><span class="nav-number">1.3.</span> <span class="nav-text">3.配置</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4-%E9%85%8D%E7%BD%AESSL"><span class="nav-number">1.4.</span> <span class="nav-text">4.配置SSL</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#5-%E6%B5%8B%E8%AF%95"><span class="nav-number">1.5.</span> <span class="nav-text">5.测试</span></a></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<div class="copyright">&copy; <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Chaoyxy</span>

  
</div>

<span id="busuanzi_container_site_pv">
    本站总访问量<span id="busuanzi_value_site_pv"></span>次
</span>
<!--

  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.3</div>
-->




        







        
      </div>
    </footer>

    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="/blogs/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/blogs/lib/canvas-nest/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/blogs/js/src/utils.js?v=5.1.3"></script>

  <script type="text/javascript" src="/blogs/js/src/motion.js?v=5.1.3"></script>



  
  


  <script type="text/javascript" src="/blogs/js/src/affix.js?v=5.1.3"></script>

  <script type="text/javascript" src="/blogs/js/src/schemes/pisces.js?v=5.1.3"></script>



  
  <script type="text/javascript" src="/blogs/js/src/scrollspy.js?v=5.1.3"></script>
<script type="text/javascript" src="/blogs/js/src/post-details.js?v=5.1.3"></script>



  


  <script type="text/javascript" src="/blogs/js/src/bootstrap.js?v=5.1.3"></script>



  


  

    
      <script id="dsq-count-scr" src="https://Chaoyxy.disqus.com/count.js" async></script>
    

    
      <script type="text/javascript">
        var disqus_config = function () {
          this.page.url = 'https://louchaoyy.gitee.io/blogs/2022/05/02/nginx%E9%85%8D%E7%BD%AEssl%E4%B9%8B%E8%B8%A9%E5%9D%91%E7%B3%BB%E5%88%97/';
          this.page.identifier = '2022/05/02/nginx配置ssl之踩坑系列/';
          this.page.title = 'nginx配置ssl之踩坑系列';
        };
        var d = document, s = d.createElement('script');
        s.src = 'https://Chaoyxy.disqus.com/embed.js';
        s.setAttribute('data-timestamp', '' + +new Date());
        (d.head || d.body).appendChild(s);
      </script>
    

  




	





  














  





  

  

  

  
  

  

  

  

</body>
</html>
